package com.ssm.zyn.dao;

import com.ssm.zyn.eo.TeacherEOpage;
import com.ssm.zyn.model.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 操作数据库对接的方法
 */
@Mapper
@Component
public interface TeacherMapper {
    //角色添加
int insertTeacher(Teacher teacher);

    //通过教师编号获取数量

int getTeacherIdCount(String teacherid);
    //通过主键更新
int updateTeacher(Teacher teacher);

    //通过主键删除
    int delTeacher(Integer tid);
    //根据条件获取相关信息
    List<TeacherEOpage> getWhereAll(TeacherEOpage teacherEOpage);
}
